const state = {
  isOnLine: null,
};
const actions = {
  setNetStatus(store, data) {
    store.commit("SET_ON_LINE", data.onLine);
  },
};
const mutations = {
  SET_ON_LINE: (state, data) => {
    //监听网络状态
    state.isOnLine = data;
  },
};

export const Base = {
  state,
  actions,
  mutations,
};
